const express= require('express')
const app = express()
const router = express.Router();
app.use(router)//引入路由
app.use(express.static('./static'))

router.get('/stu',(req,res)=>{
    let id=req.query.id
    res.sendFile(__dirname+'/data/'+id+'.json')
})
app.listen(8080)